package com.github.wenzi.servlet;

/**
 * httpServlet的包装类
 */
public class HttpServletWapper extends HttpServlet {

    private HttpServlet httpServlet;


    public HttpServletWapper() {
    }

    public HttpServletWapper(HttpServlet httpServlet) {
        this.httpServlet = httpServlet;
    }

    @Override
    public void doGet(Request request, Response response) {
        httpServlet.doGet(request,response);
    }

    @Override
    public void doPost(Request request, Response response) {
       httpServlet.doPost(request,response);
    }

    @Override
    public void init() throws Exception {
        httpServlet.init();
    }

    @Override
    public void destory() throws Exception {
        httpServlet.destory();
    }
}
